#!/bin/bash
su es<<!
nohup /data/elasticsearch-2.4.6/bin/elasticsearch >/dev/null &
echo 启动es成功
exit
!